package org.jeecg.modules.product.job.ticket.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.product.job.ticket.entity.TbJobTicketAuditRecord;
import org.jeecg.modules.product.job.ticket.entity.TbJobTicketEventsOperatingReserve;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 电子作业票活动清单
 * @Author: jeecg-boot
 * @Date:   2024-11-15
 * @Version: V1.0
 */
@Data
@Schema(description="电子作业票活动清单")
public class TbJobTicketEventsPage {

	/**id*/
	@Schema(description = "id")
    private String id;
	/**创建人*/
	@Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
	@Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@Schema(description = "所属部门")
    private String sysOrgCode;
	/**作业内容*/
	@Excel(name = "作业内容", width = 15)
	@Schema(description = "作业内容")
    private String content;
	/**预约编号*/
	@Excel(name = "预约编号", width = 15)
	@Schema(description = "预约编号")
    private String number;
	/**作业原因*/
	@Excel(name = "作业原因", width = 15, dicCode = "jobReason")
    @Dict(dicCode = "jobReason")
	@Schema(description = "作业原因")
    private String jobReason;
	/**归属装置*/
	@Excel(name = "归属装置", width = 15, dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
    @Dict(dictTable = "tb_base_risk_device", dicText = "name", dicCode = "id")
	@Schema(description = "归属装置")
    private String device;
	/**归属单元*/
	@Excel(name = "归属单元", width = 15, dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
    @Dict(dictTable = "tb_base_risk_unit", dicText = "risk_unit_name", dicCode = "id")
	@Schema(description = "归属单元")
    private String cell;
	/**作业类型*/
	@Excel(name = "作业类型", width = 15)
	@Schema(description = "作业类型")
    private String jobType;
	/**作业开始时间*/
	@Excel(name = "作业开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "作业开始时间")
    private Date planStartDate;
	/**作业结束时间*/
	@Excel(name = "作业结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "作业结束时间")
    private Date planEndDate;
	/**作业所属部门*/
	@Excel(name = "作业所属部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Schema(description = "作业所属部门")
    private String applyCompany;
	/**作业申请人*/
	@Excel(name = "作业申请人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "作业申请人")
    private String applicant;
	/**申请时间*/
	@Excel(name = "申请时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@Schema(description = "申请时间")
    private Date applyTime;
	/**作业部位*/
	@Excel(name = "作业部位", width = 15)
	@Schema(description = "作业部位")
    private String position;
	/**施工单位*/
	@Excel(name = "施工单位", width = 15)
	@Schema(description = "施工单位")
    private String operationCompany;
	/**作业所属单位负责人*/
	@Excel(name = "作业所属单位负责人", width = 15)
    //@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "作业所属单位负责人")
    private String operationChargePerson;
	/**施工单位负责人*/
	@Excel(name = "施工单位负责人", width = 15)
	@Schema(description = "施工单位负责人")
    private String constructionMan;
	/**作业地点*/
	@Excel(name = "作业地点", width = 15)
	@Schema(description = "作业地点")
    private String locations;
	/**公司监护人*/
	@Excel(name = "公司监护人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Schema(description = "公司监护人")
    private String companyGuardian;
	/**施工单位监护人*/
	@Excel(name = "施工单位监护人", width = 15)
	@Schema(description = "施工单位监护人")
    private String constructionGuardian;
	/**关联的其他特殊作业及安全作业票编号*/
	@Excel(name = "关联的其他特殊作业及安全作业票编号", width = 15)
	@Schema(description = "关联的其他特殊作业及安全作业票编号")
    private String relevanceNumber;
	/**危害辨识*/
	@Excel(name = "危害辨识", width = 15, dicCode = "jobRiskIdentification")
    @Dict(dicCode = "jobRiskIdentification")
	@Schema(description = "危害辨识")
    private String riskIdentificationResult;
	/**定位*/
	@Excel(name = "定位", width = 15)
	@Schema(description = "定位")
    private String orientation;
	/**监控选择*/
	@Excel(name = "监控选择", width = 15, dictTable = "tb_video", dicText = "name", dicCode = "id")
    @Dict(dictTable = "tb_video", dicText = "name", dicCode = "id")
	@Schema(description = "监控选择")
    private String videoId;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "jobStatus")
    @Dict(dicCode = "jobStatus")
	@Schema(description = "状态")
    private String deleted;
	/**作业状态*/
	@Excel(name = "作业状态", width = 15, dicCode = "normalOrStop")
    @Dict(dicCode = "normalOrStop")
	@Schema(description = "作业状态")
    private String status;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
	@Schema(description = "租户id")
    private String tenantId;

	@ExcelCollection(name="作业活动开工准备记录")
	@Schema(description = "作业活动开工准备记录")
	private TbJobTicketEventsOperatingReserve tbJobTicketEventsOperatingReserve;
	@ExcelCollection(name="电子作业票审核记录")
	@Schema(description = "电子作业票审核记录")
	private List<TbJobTicketAuditRecord> tbJobTicketAuditRecordList;

}
